<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

      var myname = '张三'
      var age =30
      var str = "我的名字是"+myname+"我的年龄是"+age
      console.log(str);
      var obj = {
        myname:'张三',
        age:20
      }
      var str = `我的名字是${obj.myname}我的年龄是${obj.age}`
      console.log(str);
      var flag = false;
      var str =`我的名字是${1+5}，我的年龄是${flag?10:20}`
    console.log(str);
    var arr = [1,23,53,45,234,324]
    for(let i in arr){
        console.log(arr[i])
    }
    </script>
</body>
</html>